<?php

namespace app\common\model;

use think\Cache;
use think\Db;
use think\Model;

/**
 * 刷题组卷
 */
class QuestionPaper extends Model
{

    // 表名
    protected $name = 'question_paper';
    
    
    public function getQuestionPaperList($question_group_id, $user_id = 0)
    {
        $questions = (new Question())->getFixListByPaper($question_group_id, $user_id);
        if (empty($questions)) fail('题目信息不存在');
        return $questions;
    }
    
}